<#setting number_format="#.##"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>财务结算表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 16px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            text-indent: 2em;
            line-height: 24px;
            width: 95%;
            margin-left: 20px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 20px;
            text-align: center;
            font-weight: bold;
            height: 36px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock500 {
            text-align: center;
            width: 500px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .paddingLeft {
            padding-left: 300px;
        }

        @page {
            margin: 5mm 10mm 0mm 10mm;
        }

        .pageBreak {
            page-break-before: always
        }

        .table_border_top_hidden {
            border-top: hidden;
        }

        .table_border_bottom_hidden {
            border-bottom: hidden;
            text-overflow: inherit;
            overflow: visible;
            height: auto;
            white-space: normal;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;
        }

        th, td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 16px;
            margin-left: 5px;
            height: 25px;
            page-break-inside: avoid;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="printContent">
    <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1><p class="printTitle">【财务未审核，此单据仅供预览】</p>
    </#if>
    <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</p>
    <p class="printTitle">
        财务结算表
    </p>
    <p style="text-align: right;margin-top: -20px">单位：元、平方米</p>
    <table class="table_border_bottom_hidden">
        <tr>
            <td colspan="2" style="width: 20%">被安置人</td>
            <td colspan="3" style="width: 30%">${strUtils.getNotNull(contract.name)}</td>
            <td colspan="2" style="width: 20%">档&#160;&#160;案<br/>编&#160;&#160;号</td>
            <td colspan="3" style="width: 30%">${strUtils.getNotNull(contract.contractCode)}</td>
        </tr>
        <tr>
            <td colspan="2">选房顺序号</td>
            <td colspan="3">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
            <td colspan="2">原可选房面积</td>
            <td colspan="3" style="word-wrap:break-word;">${bigUtils.getNotNullStr(contract.propertyChangeArea)}</td>
        </tr>
       <!-- <tr>
            <td colspan="2">参与合并面积</td>
            <td colspan="3" style="word-wrap:break-word;">${bigUtils.getNotNullStr(contract.adjustArea)}</td>
            <td colspan="2">现可选房面积</td>
            <td colspan="3" style="word-wrap:break-word;">${bigUtils.getNotNullStr(contract.limitHouseAreaTotal)}</td>
        </tr>-->
       <!-- <tr>
            <td colspan="5">每月应发过渡费</td>
            <td colspan="5">${bigUtils.getNotNullStr(contract.zzgdMoney)}</td>
        </tr>-->
        <#if hbMemo?? && (hbMemo?length > 0) >
            <tr>
                <td colspan="10" style="font-size: 14px">
                    ${strUtils.getNotNull(hbMemo)}
                </td>
            </tr>
        </#if>
        <!--<tr>
            <td colspan="10">一、产权调换等面积应补金额</td>
        </tr>
        <tr>
            <td colspan="6">费用说明</td>
            <td colspan="4">金额</td>
        </tr>
        <tr>
            <td colspan="6">原协议应缴交金额</td>
            <td colspan="4">${(contract.resultMoney)!}</td>
        </tr>-->
        <#if (adjustAreaList?size > 0)>
            <#list adjustAreaList as adjustArea>
                <tr>
                    <td colspan="6">${(adjustArea.memo)!}</td>
                    <td colspan="4">${(adjustArea.hbGfk)!}</td>
                </tr>
            </#list>
        </#if>
        <#if contract.chooseHouseQiFangAreaTotal ?? && contract.chooseHouseQiFangAreaTotal gt 0>
            <#if cwMemoMap ?? >
                <tr>
                    <td colspan="2">现房应缴交金额</td>
                    <td colspan="3">
                        ${bigUtils.getNotNull(cwMemoMap['xianFangResultMoney'])}
                    </td>
                    <td colspan="2">期房应缴交金额</td>
                    <td colspan="3">
                        ${bigUtils.getNotNull(cwMemoMap['qiFangResultMoney'])}
                    </td>
                </tr>
            </#if>
        </#if>
    </table>
    <!--<table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="7">二、选房结果与产权调换面积比扩购或减少安置面积应补金额</td>
        </tr>
        <tr>
            <td style="width: 12%">房屋性质</td>
            <td colspan="2">类别</td>
            <td style="width: 16%">面积</td>
            <td style="width: 19%">单价</td>
            <td style="width: 17%">金额</td>
        </tr>
        <#if overHouseMoneyMap??>
            <#assign overHouseMoneyLength = overHouseMoneyMap?size/>
            <#list overHouseMoneyMap? keys as key>
                <#assign itemMap = overHouseMoneyMap[key]/>
                <tr>
                    <#if key_index==0>
                        <td rowspan="${overHouseMoneyLength+2}">住宅</td>
                        <td rowspan="${overHouseMoneyLength}">扩购部分</td>
                    </#if>
                    <td>${key}</td>
                    <td>${itemMap["area"]}</td>
                    <td>${itemMap["price"]}元/㎡</td>
                    <td>${itemMap["money"]}</td>
                </tr>
            </#list>
        </#if>
        <tr>
            <td colspan="2">安置不足部分</td>
            <td>
                <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                    <#if bigUtils.getNotNull(contract.zzResultArea) lt 0>
                        ${bigUtils.getNotNullStr(bigUtils.getBigAndBigSub(0,contract.zzResultArea))}
                    </#if>
                </#if>
            </td>
            <td>${bigUtils.getNotNullStr(parameter.xfbcPrice)}元/㎡</td>
            <td>
                <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                    <#if bigUtils.getNotNull(contract.houseMoney) gt 0>
                        ${bigUtils.getNotNullStr(contract.houseMoney)}
                    </#if>
                </#if>
            </td>
        </tr>
        <tr>
            <td colspan="3">小计</td>
            <td></td>
            <td>${bigUtils.getNotNullStr(bigUtils.getSum(contract.houseMoney))}</td>
        </tr>
    </table>-->
    <!--<table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="6">三、住宅临时安置补助费发放金额</td>
        </tr>
        <tr>
            <td style="width: 15%">项目</td>
            <td style="width: 20%">原每月发放标准</td>
            <td colspan="3" style="width: 34%">发放标准</td>
            <td style="width: 16%">实发金额</td>
        </tr>
        <tr>
            <td>原过渡补助费</td>
            <td>${bigUtils.getNotNullStr(contract.zxgdMoney)}元/月</td>
            <td colspan="3">一次性发放三个月</td>
            <td>${bigUtils.getNotNullStr(contract.zxbzMoney)}</td>
        </tr>
        <#if (adjustAreaList?size > 0)>
            <#list adjustAreaList as adjustArea>
                <tr>
                    <td colspan="5">${(adjustArea.memo)!}</td>
                    <td>${(adjustArea.hbGdf)!}</td>
                </tr>
            </#list>
        </#if>
        &lt;!&ndash;<tr>
            <td colspan="5">小计</td>
            <td>${bigUtils.getNotNullStr(contract.bzMoneyTotal)}</td>
        </tr>&ndash;&gt;
    </table>-->
    <!--<table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="2">四、楼层调节价差金额</td>
        </tr>
        <tr>
            <td style="width: 30%">楼层调节价差金额</td>
            <td>${bigUtils.getNotNullStr(contract.tjMoneyTotal)}</td>
        </tr>
    </table>-->
    <table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="5">一、住宅专项维修基金</td>
        </tr>
        <tr>
            <td>性质</td>
            <td>缴交标准</td>
            <td>本次缴交标准</td>
            <td>面积</td>
            <td>金额</td>
        </tr>
        <tr>
            <td>现房</td>
            <td>${bigUtils.getNotNullStr(parameter.zzwxPrice)}元/㎡</td>
            <td>${bigUtils.getNotNullStr(parameter.zzbcwxPrice)}元/㎡</td>
            <td>${bigUtils.getNotNullStr(contract.chooseHouseXianFangAreaTotal)}</td>
            <td>${bigUtils.getNotNullStr(contract.zzwxXianFangMoney)}</td>
        </tr>
        <#if contract.chooseHouseQiFangAreaTotal ?? && contract.chooseHouseQiFangAreaTotal gt 0 >

            <tr>
                <td>期房</td>
                <td>${bigUtils.getNotNullStr(parameter.zzwxPrice)}元/㎡</td>
                <td>${bigUtils.getNotNullStr(parameter.zzbcwxPrice)}元/㎡</td>
                <td>${bigUtils.getNotNullStr(contract.chooseHouseQiFangAreaTotal)}</td>
                <td>${bigUtils.getNotNullStr(contract.zzwxQiFangMoney)}</td>
            </tr>
        </#if>
        <tr>
            <td colspan="3">小计</td>
            <td>${bigUtils.getNotNullStr(contract.chooseHouseAreaTotal)}</td>
            <td>${bigUtils.getNotNullStr(contract.zzwxMoney)}</td>
        </tr>
    </table>

    <!--<table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="2">五、其他金额</td>
        </tr>
        <tr>
            <td style="width: 30%">其他金额</td>
            <td>${bigUtils.getNotNullStr(contract.otherMoney)}</td>
        </tr>
    </table>-->
    <!--<table class="table_border_top_hidden">
        <tr>
            <td colspan="3">六、财务总结算</td>
        </tr>
        <tr>
            <td>住宅专项维修基金</td>
            <td>房屋应补差价款</td>
            <td>财务总金额</td>
        </tr>
        <tr>
            <td>${bigUtils.getNotNullStr(contract.zzwxMoney)}</td>
            <td>${bigUtils.getNotNullStr(contract.houseFinalNoWxjMoney)}</td>
            <td>${bigUtils.getNotNullStr(contract.houseFinalMoney)}</td>
        </tr>
    </table>-->
    <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被安置人应缴纳金额、“+”为被安置人应领取金额。</p>
    <#if contract.chooseHouseQiFangAreaTotal ?? && contract.chooseHouseQiFangAreaTotal gt 0 >
        <p style="text-indent: 0em;font-size: 14px">
            注:现房缴款交房时，需最低缴款标准为【现房应缴交金额】+【发放临时安置补助费】+【现房部分维修基金】+【其他金额】，若为正数则等期房缴款交房时统一结算。</p>
        <p style="text-indent: 0em;font-size: 14px">期房部分过渡费计算办法：原过渡费-已选现房面积×6元/㎡×倍数(按期交房一倍，逾期交房2倍)。</p>
    </#if>
    <#if contract.financeMemo ?? && contract.financeMemo !="">
        <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
    </#if>
    <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被安置人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;年&#160;月&#160;日</p>
</div>
<#if (contract.storageRoomNum?? && contract.storageRoomNum gt 0)>
    <div style="page-break-after: always;"></div>
    <div class="printContent">
        <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1><p class="printTitle">【财务未审核，此单据仅供预览】</p>
        </#if>
        <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</p>
        <p class="printTitle">储藏间财务结算表</p>
        <p style="text-align: right;">单位：元、平方米</p>
        <table class="table_border_bottom_hidden">
            <tr>
                <td colspan="2" style="width: 20%">被安置人</td>
                <td colspan="3" style="width: 30%">${strUtils.getNotNull(contract.name)}</td>
                <td colspan="2" style="width: 20%">协议编号</td>
                <td colspan="3">${strUtils.getNotNull(contract.contractCode)}</td>
            </tr>
            <tr>
                <td colspan="2">选房顺序号</td>
                <td colspan="3">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
                <td colspan="2">证件号</td>
                <td colspan="3">${strUtils.getNotNull(contract.idCard)!}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="4">一、储藏间金额</td>
            </tr>
            <tr>
                <td style="width: 12%">房屋性质</td>
                <td style="width: 16%">面积</td>
                <td style="width: 19%">单价</td>
                <td style="width: 17%">金额</td>
            </tr>
            <tr>
                <td>储藏间</td>
                <td>${bigUtils.getNotNullStr(contract.ccjResultArea)}</td>
                <td>${bigUtils.getNotNullStr(parameter.cwjPrice)}元/㎡</td>
                <td>${bigUtils.getNotNullStr(contract.storageRoomMoney)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">

            <tr>
                <td colspan="6">二、储藏间专项维修基金</td>
            </tr>
            <tr>
                <td>性质</td>
                <td>面积</td>
                <td colspan="2">缴交标准</td>
                <td>本次缴交标准</td>
                <td>金额</td>
            </tr>
            <tr>
                <td>储藏间</td>
                <td>${bigUtils.getNotNullStr(contract.storageRoomArea)}</td>
                <td colspan="2">${bigUtils.getNotNullStr(parameter.ccjwxPrice)}元/㎡</td>
                <td>${bigUtils.getNotNullStr(parameter.ccjbcwxPrice)}元/㎡</td>
                <td>${bigUtils.getNotNullStr(contract.ccjwxMoney)}</td>
            </tr>
            <tr>
                <td colspan="5">小计</td>
                <td>${bigUtils.getNotNullStr(contract.ccjwxMoney)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden">
            <tr>
                <td colspan="3">三、财务总结算</td>
            </tr>
            <tr>
                <td style="width: 12%;">储藏间金额</td>
                <td style="width: 12%;">储藏间专项维修基金</td>
                <td style="width: 13%;">合计</td>
            </tr>
            <tr>
                <td>${bigUtils.getNotNullStr(contract.storageRoomMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.ccjwxMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.storageRoomFinalMoney)}</td>
            </tr>
        </table>
        <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被安置人应缴纳金额、“+”为被安置人应领取金额。</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被安置人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
        &#160;年&#160;月&#160;日
            <!--<#if contract.financeCheckDate ?? >
                ${contract.financeCheckDate?string["yyyy年MM月dd日"]}
                <#else/>
                ${.now?string["yyyy年MM月dd日"]}
            </#if>-->
        </p>
    </div>
</#if>
<#if (contract.carLotNum?? && contract.carLotNum gt 0)>
    <div style="page-break-after: always;"></div>
    <div class="printContent">
        <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1><p class="printTitle">【财务未审核，此单据仅供预览】</p>
        </#if>
        <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</p>
        <p class="printTitle">车位财务结算表</p>
        <p style="text-align: right;">单位：元、平方米</p>
        <table class="table_border_bottom_hidden">
            <tr>
                <td colspan="2" style="width: 20%">被安置人</td>
                <td colspan="3" style="width: 30%">${strUtils.getNotNull(contract.name)}</td>
                <td colspan="2" style="width: 20%">协议编号</td>
                <td colspan="3">${strUtils.getNotNull(contract.contractCode)}</td>
            </tr>
            <tr>
                <td colspan="2">选房顺序号</td>
                <td colspan="3">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
                <td colspan="2">证件号</td>
                <td colspan="3">${strUtils.getNotNull(contract.idCard)!}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="5">一、车位专项维修基金</td>
            </tr>
            <tr>
                <td>性质</td>
                <td>缴交标准</td>
                <td>本次缴交标准</td>
                <td>面积</td>
                <td>金额</td>
            </tr>
            <#if contract.carLotXianFangArea ?? && contract.carLotXianFangArea gt 0>
                <tr>
                    <td>现房地下车位</td>
                    <td>${bigUtils.getNotNullStr(parameter.cwwxPrice)}元/㎡</td>
                    <td>${bigUtils.getNotNullStr(parameter.cwbcwxPrice)}元/㎡</td>
                    <td>${bigUtils.getNotNullStr(contract.carLotXianFangArea)}</td>
                    <td>${bigUtils.getNotNullStr(contract.cwwxXianFangMoney)}</td>
                </tr>
            </#if>
            <#if contract.carLotQiFangArea ?? && contract.carLotQiFangArea gt 0>

                <tr>
                    <td>期房地下车位</td>
                    <td>${bigUtils.getNotNullStr(parameter.cwwxPrice)}元/㎡</td>
                    <td>${bigUtils.getNotNullStr(parameter.cwbcwxPrice)}元/㎡</td>
                    <td>${bigUtils.getNotNullStr(contract.carLotQiFangArea)}</td>
                    <td>${bigUtils.getNotNullStr(contract.cwwxQiFangMoney)}</td>
                </tr>
            </#if>
            <tr>
                <td colspan="3">小计</td>
                <td>${bigUtils.getNotNullStr(contract.carLotArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.cwwxMoney)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden">
            <tr>
                <td colspan="4">二、财务总结算</td>
            </tr>
            <tr>
                <td style="width: 12%;">/</td>
                <td style="width: 12%;">地下车位金额</td>
                <td style="width: 12%;">车位专项维修基金</td>
                <td style="width: 13%;">合计</td>
            </tr>
            <#if contract.carLotXianFangArea ?? && contract.carLotXianFangArea gt 0>

                <tr>
                    <td>现房车位</td>
                    <td>${bigUtils.getNotNullStr(contract.carLotXianFangMoney)}</td>
                    <td>${bigUtils.getNotNullStr(contract.cwwxXianFangMoney)}</td>
                    <td>${bigUtils.getSumForInt(contract.carLotXianFangMoney,contract.cwwxXianFangMoney)}</td>
                </tr>
            </#if>
            <#if contract.carLotQiFangArea ?? && contract.carLotQiFangArea gt 0>
                <tr>
                    <td>期房车位</td>
                    <td>${bigUtils.getNotNullStr(contract.carLotQiFangMoney)}</td>
                    <td>${bigUtils.getNotNullStr(contract.cwwxQiFangMoney)}</td>
                    <td> ${bigUtils.getSumForInt(contract.carLotQiFangMoney,contract.cwwxQiFangMoney)}</td>
                </tr>
            </#if>
            <tr>
                <td>小计</td>
                <td>${bigUtils.getNotNullStr(contract.carLotMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.cwwxMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.carLotFinalMoney)}</td>
            </tr>
        </table>
        <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被安置人应缴纳金额、“+”为被安置人应领取金额。</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被安置人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
        &#160;年&#160;月&#160;日
            <#if contract.financeCheckDate ?? >
                ${contract.financeCheckDate?string["yyyy年MM月dd日"]}
                <#else/>
                ${.now?string["yyyy年MM月dd日"]}
            </#if>
        </p>
    </div>
</#if>
</body>
</html>